<!DOCTYPE html>
<html lang="zh">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>查看选题状态</title>
  <style>
    /* 全局设置 */
    body {
      font-family: 'Arial', sans-serif;
      background-color: #f4f7fa;
      margin: 0;
      padding: 0;
      display: flex;
      justify-content: center;
      align-items: center;
      height: 100vh;
      color: #333;
    }

    /* 容器样式 */
    .container {
      background-color: #fff;
      border-radius: 8px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      padding: 30px;
      max-width: 600px;
      width: 100%;
      box-sizing: border-box;
    }

    /* 标题样式 */
    h2 {
      font-size: 24px;
      text-align: center;
      margin-bottom: 20px;
    }

    /* 表单标签样式 */
    label {
      font-size: 14px;
      display: block;
      margin-bottom: 8px;
      color: #555;
    }

    /* 输入框样式 */
    input[type="text"],
    input[type="submit"] {
      width: 100%;
      padding: 10px;
      border-radius: 4px;
      font-size: 16px;
    }

    /* 输入框 */
    input[type="text"] {
      border: 1px solid #ddd;
      margin-bottom: 20px;
      color: #333;
    }

    /* 提交按钮 */
    input[type="submit"] {
      background-color: #4CAF50;
      border: none;
      color: white;
      cursor: pointer;
      transition: background-color 0.3s;
    }

    input[type="submit"]:hover {
      background-color: #45a049;
    }


    /* 垂直间距 */
    form {
      margin-top: 20px;
    }

    .form-row {
      margin-bottom: 20px;
    }

    .form-row label {
      font-size: 14px;
      color: #555;
    }

    /* 按钮样式 */
    .form-row input[type="submit"] {
      background-color: #007bff;
      margin-top: 10px;
    }

    .form-row input[type="submit"]:hover {
      background-color: #0056b3;
    }

    /* 响应式设计 */
    @media (max-width: 768px) {
      .container {
        padding: 20px;
        margin: 10px;
      }

      h2 {
        font-size: 20px;
      }

      input[type="text"], input[type="submit"] {
        font-size: 14px;
      }
    }
  </style>
</head>
<body>
<div class="container">
  <h2>查看并管理您的选题状态</h2>
  <form action="/m1/ViewOrUpdateStatusServlet" method="post">
    <label for="sno">请输入您的学号：</label>
    <input type="text" id="sno" name="sno" required>
    <input type="submit" value="查询选题状态">
  </form>

  <div id="status">
    <!-- 这里会显示选题状态和修改选题状态的表单 -->
  </div>
</div>
</body>
</html>